package com.leff.cards.web.requests;

import com.leff.cards.data.AppState;
import com.leff.cards.util.Dictionary;
import com.leff.cards.web.WebRequest;

public class InviteResponseRequest extends WebRequest {

	public InviteResponseRequest(long groupId, long fbid, boolean join) {
		super(WebCommand.INVITE_RESPONSE);
		
		mParameters.put(Parameter.GROUP_ID, groupId);
		mParameters.put(Parameter.FB_ID, fbid);
		mParameters.put(Parameter.JOIN, join ? 1 : 0);
	}

	@Override
	protected void parseResultDictionary(Dictionary dict) {
		
		AppState.get().refreshAll();
	}
}
